package thread.synchronize.s1;

/**
 * @author cuihao
 * @date 2017/12/8
 */
public class ThreadB extends Thread {
    private final HasSelfPrivateNum num;

    public ThreadB(HasSelfPrivateNum num) {
        this.num = num;
    }

    @Override
    public void run() {
        super.run();
        num.addi("b");
    }
}
